const state={
    user:null
}

const mutations={
    userLogin(state,user){
        state.user = user
        
    },
    userDel(state){
        state.user=null,
        window.localStorage.removeItem("token");
    }
}

export default{
    namespaced:true, //使用名称空间
    state,
    mutations
}